package test.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author 游勇坤
 * @date 2019/9/26 16:35
 * @description 面积
 */
@Data
public class AcreageVO implements Serializable {
    /**
     * 标题
     */
    private String label;
    /**
     * 数据
     */
    private List<Acreage> value;
    /**
     * 选择方式：
     * 1：单选
     * 2：多选
     */
    private Integer choiceMode;

    private Acreage acreage = new Acreage();

    public Acreage getAcreage(String key, String value, List<Integer> relation) throws CloneNotSupportedException {
        return this.acreage.clone();
    }

    @Data
    private class Acreage implements Serializable, Cloneable {
        private String key;
        private String value;
        private List<Integer> relation;

        public Acreage() {
        }

        public Acreage(String key, String value, List<Integer> relation) {
            this.key = key;
            this.value = value;
            this.relation = relation;
        }

        @Override
        protected Acreage clone() throws CloneNotSupportedException {
            return (Acreage) super.clone();
        }
    }
}


